<%@ include file="/jsp/taglib.jsp" %>

<s:layout-render name="/jsp/layout/main.jsp">
	<s:layout-component name="content">
		<table cellspacing="1" cellpadding="6" width="100%" align="left" border="0">
				<tbody>
					<tr>
					    <td valign="top" nowrap height="350px">            
					    <br><br>
					    <s:form name="frmLogin" beanclass="app.rci.action.login.LoginActionBean">                                    
								<s:hidden value="login" name="do"/> 
							
								<table class="tborder" cellspacing="1" cellpadding="6" width="400px" align="center" border="0">
									<tbody>
										<tr>
										    <td class="tcat" colspan="2" align="center"><strong>Please enter your username and password to log in</strong></td></tr>
										<tr>
										    <td class="alt1">
													<div class="alt2 raised" align="center">
													<div align="left">
													    <fieldset><legend>Log In</legend>
													    <div style="PADDING-RIGHT: 6px; PADDING-LEFT: 6px; PADDING-BOTTOM: 6px; PADDING-TOP: 6px">
													    	<div id="error"></div>
													    	<s:errors/>
																<table cellSpacing="0" width="100%" cellPadding="6" border="0">
																	<tbody>
																		<tr vAlign="top">
																		    <td colSpan="2">Username<br>
																		    	<s:text class="bginput" size="50" maxlength="100" id="rt_admin_username" name="data.rt_admin_username" title="Username"/>
																		    </td>
																		</tr>
																		<tr vAlign=top>
																		    <td colSpan="2">Password<br>
																		    	<s:password class="bginput" size="50" maxlength="100" id="rt_admin_password" name="data.rt_admin_password" title="Password"/>
																		    </td>
																		</tr>
																		<tr>
																		    <td vAlign="top" width="9%"><s:checkbox id="st_remember" value="1" name="st_remember"/></td>
																		    <td align="left" width="91%"><small><label>Remember me</label></small></td>
																		</tr>
																	</tbody>
																</table>
													    </div>
													    </fieldset> 
													</div>
													</div>
													<div style="MARGIN-TOP: 6px" align=center>
													    <s:submit name="checkLogin" id="checkLogin" class="button" value="Login"/> 
													    <!-- accessKey="s"  onClick="rememberMe(); return onSubmitCheck(document.forms['frmLogin'], false,false);" -->
													</div>
										    </td>
										</tr>
									</tbody>
								</table>
					    </s:form>			    
					    </td>
					</tr>
				</tbody>
			</table>
			<!-- Javascript Invoke -->
			<script type="text/javascript">
				$(document).ready(function(){
					$('input[name=checkLogin]').click(function(){
						if($('#rt_admin_username').val()=='' || $('#rt_admin_password').val()==''){
							$('#stripesError').remove();
							$('#error').css("display","block");
							$('#error').html('<p>Username or Password is required.</p>');
							return false;
						}						
					});
				});
			</script>
		</s:layout-component>
</s:layout-render>